<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex benben-position-layout flex flex-wrap align-center activiList_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center justify-between flex-sub activiList_fd0_0'      >
            <view   class='flex flex-wrap align-center activiList_fd0_0_c0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <text class='fu-iconfont2  activiList_fd0_0_c0_c0'  >&#xe794;</text>
</view>
<text class='activiList_fd0_0_c1'  >活动列表</text>
    <view   class='flex flex-wrap align-center activiList_fd0_0_c0'      >
        </view>
</view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
<!---flex布局flex布局开始-->
 <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout activiList_flex_1"    >
            <template v-for = '(item,key0) in activityList'>
    <view   class='flex flex-wrap align-center activiList_fd1_0'       :key='key0'>
        <image class='activiList_fd1_0_c0'  mode="aspectFill"  :src='item.picture'></image>
    <view   class='flex flex-direction flex-wrap align-stretch flex-sub'      >
            <view   class='flex flex-wrap align-center'      >
        <text class='flex-sub activiList_fd1_0_c1_c0_c0'  >{{item.service_title}}</text>
<text class='activiList_fd1_0_c1_c0_c1'  >超</text>
<text class='activiList_fd1_0_c1_c0_c1'  >{{item.sales_volume}}</text>
<text class='activiList_fd1_0_c1_c0_c1'  >人选</text>
</view>
<text class='activiList_fd1_0_c1_c1'  >{{item.describe}}</text>
    <view   class='flex flex-wrap align-end'      >
            <view   class='flex flex-direction flex-wrap align-stretch flex-sub'      >
            <view   class='flex flex-wrap align-center activiList_fd1_0_c1_c2_c0_c0'      >
            <view   class='flex flex-wrap align-end'      >
        <text class='activiList_fd1_0_c1_c2_c0_c0_c0_c0'  >￥</text>
<text class='activiList_fd1_0_c1_c2_c0_c0_c0_c1'  >{{item.activity_price}}</text>
</view>
<text class='activiList_fd1_0_c1_c2_c0_c0_c1'  >￥</text>
<text class=' activiList_fd1_0_c1_c2_c0_c0_c2'   >
    <text >{{ item.original_price | frontPrice }}</text>
    <text >{{ item.original_price | laterPrice }}</text>
</text>
</view>
    <view   class='flex flex-wrap align-center'      >
        <image class='activiList_fd1_0_c1_c2_c0_c1_c0'  mode="aspectFit"  :src='STATIC_URL+"529.png"'></image>
<text class='activiList_fd1_0_c1_c2_c0_c1_c1'  >{{item.server_time}}</text>
<text class='activiList_fd1_0_c1_c2_c0_c1_c1'  >分钟</text>
</view>
</view>
<button class='activiList_fd1_0_c1_c2_c1'  @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/index/placeOrder/placeOrder?id=${item.serviceproject_id}&activity_id=${item.activity_id}`"  >立即下单</button>
</view>
</view>
</view>
    </template>
    <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
</view>
        
<!---flex布局flex布局结束-->
    
    
        </view>
    </view>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
import {validate} from '@/common/utils/validate.js'
    
    export default {
        components:{},
        mixins: [pagingList],
        
        data(){
			return {"minixPagingListsApi":"","pageingListApiMethod":"","allowOnloadGetList":false,"activityList":[],"activity_id":"5"};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            let {activity_id}=options
if (activity_id !== undefined) this.activity_id = activity_id
this.get_recommend_serviceFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            this.get_recommend_serviceFunc()
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //查询推荐项目
                 get_recommend_serviceFunc(){
                                    this.minixPagingListsApi = global.apiUrls.post654987c259268;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {activity_id:this.activity_id}
                this.listData = [];
                this.activityList = this.listData;
                this.pagingListToggle();
                
                },
                pagingListPostData(){
                    return this.pagingListPostDataContent
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:rgba(246, 247, 249, 1);background-size: 100% auto;
        }
    .activiList_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .activiList_fd0_0_c1{
        font-size:36rpx;font-weight:500;color:#333;
    }
    .activiList_fd0_0_c0_c0{
        font-size:36rpx;
    }
    .activiList_fd0_0_c0{
        width:120rpx;height:88rpx;
    }
    .activiList_fd0_0{
        padding:0rpx 32rpx 0rpx 32rpx;height:88rpx;
    }
    .activiList_flex_1{
        padding:24rpx 24rpx 0rpx 24rpx;
    }
    .activiList_fd1_0_c1_c2_c1{
        background:var(--benbenbgColor2);border-radius:32rpx 32rpx 32rpx 32rpx;font-size:24rpx;color:#fff;width:156rpx;height:64rpx;line-height:64rpx;margin:0rpx 0rpx 3rpx 10rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c1_c1{
        color:#666666;font-size:22rpx;font-weight:500;line-height:30rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c1_c0{
        width:24rpx;height:24rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 8rpx 0rpx 0rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c0_c2{
        color:#999999;font-weight:500;line-height:33rpx;font-size:24rpx;text-decoration:line-through;
    }
    .activiList_fd1_0_c1_c2_c0_c0_c1{
        color:#999999;font-size:24rpx;font-weight:500;line-height:33rpx;text-decoration:line-through;margin:0rpx 0rpx 0rpx 17rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c0_c0_c1{
        color:#D92D35;font-size:32rpx;font-weight:700;line-height:45rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c0_c0_c0{
        color:#D92D35;font-size:24rpx;font-weight:700;line-height:40rpx;
    }
    .activiList_fd1_0_c1_c2_c0_c0{
        margin:0rpx 0rpx 12rpx 0rpx;
    }
    .activiList_fd1_0_c1_c1{
        color:#999999;font-size:24rpx;font-weight:500;line-height:33rpx;margin:14rpx 0rpx 24rpx 0rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;
    }
    .activiList_fd1_0_c1_c0_c1{
        color:#F29853;font-size:24rpx;font-weight:500;line-height:33rpx;
    }
    .activiList_fd1_0_c1_c0_c0{
        color:#333333;font-size:32rpx;font-weight:700;line-height:45rpx;-webkit-line-clamp:1;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;margin:0rpx 24rpx 0rpx 0rpx;
    }
    .activiList_fd1_0_c0{
        width:200rpx;height:200rpx;margin:0rpx 24rpx 0rpx 0rpx;border-radius:16rpx 16rpx 16rpx 16rpx;
    }
    .activiList_fd1_0{
        background:#fff;background-size:100% auto !important;border-radius:16rpx 16rpx 16rpx 16rpx;padding:24rpx 24rpx 24rpx 24rpx;margin:0rpx 0rpx 24rpx 0rpx;
    }
</style>